package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_quote_price")
public class QuotePriceDo extends Model<QuotePriceDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型(begin|end)
     */
    @TableField("type")
    private String type;

    /**
     * 基础报价编号
     */
    @TableField("quote_no")
    private String quoteNo;

    /**
     * 有效期(咱只做观看使用)
     */
    @TableField("begin_time")
    private LocalDate beginTime;

    @TableField("end_time")
    private LocalDate endTime;

    /**
     * 客户id(尾程)
     */
    @TableField("company_id")
    private Long companyId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    /**
     * 上门取件 door  一件代发 out
     */
    @TableField("model")
    private String model;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
